﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace LoginForm
{
    public class MyTabPage : TabPage
    {
        private Form form;
        public MyTabPage(MyFormPage content) {
            this.form = content;
            this.Controls.Add(content.pnl);
            this.Text = content.Text;
        }
        protected override void Dispose(bool disposing)
        {
            if (disposing) {
                form.Dispose();
            }
            base.Dispose(disposing);
        }

    }
    public class MyFormPage : Form
    {
        public Panel pnl;
    }
}
